package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

@Setter@Getter
@JsonIgnoreProperties(value = {"handler"})
public class StrategyComment extends BaseDomain{

    private User user;
    @JsonFormat(pattern ="yyyy-MM-dd" , timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    private String content;

    private String imgUrls;

    private Integer starNum;

    private Strategy strategy;

    private Integer state=0;
    @JsonFormat(pattern ="yyyy-MM-dd" , timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date commendTime;

    private List<Tag> tag;
    private Integer hasRead=0;//已读未读状态,0是未读,1是已读

}